<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function f1() {
      return new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve('f1 3秒后执行');
        }, 3000);
      })
    }
    function f2() {
      return new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve('f2 4秒后执行');
        }, 4000);
      })
    }
    function f3() {
      return new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve('f3 5秒后执行');
        }, 5000);
      })
    }
    async function show() {
      await f1().then(result => console.log(result))
      await f2().then(result => console.log(result))
      f3().then(result => console.log(result))
    }
    show()
  </script>
</body>

</html>